package com.yitao.cms.vo.order;

import com.yitao.client.dto.order.MallOrderRefundImgDto;
import com.yitao.cms.utils.NumberUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


@Data
public class CmsMallOrderRefundVo {

    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("退款类型 1:普通退款 2:缺货退款，3:赔偿退款(部分退款)")
    private String refundType;
    @ApiModelProperty("退款原因 1:不想要了/拍错了 2:快递原因 3:卖家实际未发货 4:协商一致退款 5:缺货 6:其他")
    private String refundReason;
    @ApiModelProperty("退款状态 -10退款申请中，-20退款申请驳回-30退款中，-40退款成功")
    private String refundStatus;
    @ApiModelProperty("退款说明")
    private String refundDescription;
    @ApiModelProperty("解决时间")
    private String refundTime;
    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("退款编号")
    private String payTradeNo;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("退款金额 单位 分")
    private Long refundFee;

    @ApiModelProperty("退款金额 单位 元")
    private Double refundFeeYuan;

    @ApiModelProperty("售后图片信息")
    private List<MallOrderRefundImgDto> mallOrderRefundImgDtoList;

    public Double getRefundFeeYuan() {
        return refundFeeYuan = NumberUtil.centToYuanForDouble(refundFee);
    }
}
